package cn.ml.mybatisdemo;

import redis.clients.jedis.Jedis;

public class TestRedis {
    public static void main(String[] args) {

        Jedis jedis = new Jedis("localhost",6379);
        jedis.auth("123456");//密码
        jedis.set("ml","wk");
        String value = jedis.get("ml");
        System.out.println(value);
        jedis.close();
    }
}
